<%@ page import="com.lxl.pojo.Teacher" %><%--
  Created by IntelliJ IDEA.
  User: 86131
  Date: 2022/3/31
  Time: 19:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false"%>
<html>
<head>
    <title>hello</title>
</head>
<body>
<%--<h1>欢迎登录,${teacher.getClass()}</h1>--%>

<%
    Teacher teacher= (Teacher)request.getSession().getAttribute("teacher");
    String name=teacher.getName();
%>
<h1>欢迎登录,<%=name%></h1>
</body>
</html>
